const Model = require('../../models/index'),
    Event = Model.Event,
    express = require('express'),
    router = express.Router(),
    mongoose = require('mongoose')

mongoose.set('useFindAndModify', false)
router.get('/hot', (req, res) => {
    Event.find((err, data) => {
        if (err) {
            res.send(err)
            return false
        }

        res.send(data)
    })
})

module.exports = router
